package org.jiajie.coffeecodes.sp.context;

/**
 * 事件发布者的定义和实现
 * ApplicationEventPublisher 是整个一个事件的发布接口，所有的事件都需要从这个接口发不出去。
 *
 * @author jay
 */
public interface ApplicationEventPublisher {

    /**
     * Notify all listeners registered with this application of an application
     * event. Events may be framework events(such as RequestHandleEvent)
     * or application-specific events.
     *
     * @param event the event to publish
     */
    void publishEvent(ApplicationEvent event);
}
